<template>
	<view class="kongjian">
		<swiper class="notice-swiper" :indicator-dots="true" :autoplay="false" interval="5000" duration="500" indicator-active-color="#1C7BE3" indicator-color="#ECECEC"
			:circular="true" :vertical="false" display-multiple-items="1">
			<swiper-item class="notice-itembox" v-for="(item,index) in list" :key="item.id">
					<view class="notice-item u-flex" @click="go('/pages/article/detail?id='+item.id)" >
						<view class="left">
							<u-image class="gardenImg" radius='5' width="260" height="210" :src="item.thumb_url" ></u-image>
						</view>
						<view class="right">
							<view class="gardenName u-line-2"> {{item.title}} </view>
							<view class="u-font-24 u-m-b-10 u-line-3">{{item.des}}</view>
						</view>
					</view>
			</swiper-item>
		</swiper>

	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				config.imgURl:uni.$u.http.config.config.imgURl
			}
		},
		props: {
			list: {
				type: Array,
				default: () => []
			},

		},
		methods: {


			go(e) {

				uni.navigateTo({
					url: e
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	.kongjian {
		.notice-swiper{
			height: 300rpx;
		}
		.notice-item{
			width: 100%;
			display: flex;
			height: 240rpx;
			align-items: center;
			// padding-bottom: 40rpx;
			.left{
				width: 260rpx;
				height: 210rpx;
				overflow: hidden;
				.gardenImg{
					width: 260rpx;
					max-height: 210rpx;
					
				}
				img{
					width: 260rpx;
					height: 210rpx;
				}
			}
			.right{
				//height: 240rpx;
				flex: 1;
				margin-left: 30rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				.gardenName{
					font-size: 28rpx;
					font-family: PingFangSC-Semibold, PingFang SC;
					font-weight: 600;
					color: #333333;
					line-height: 42rpx;
					margin-bottom: 10rpx;
				}
				.usageModebox{
					display: flex;
					justify-content: space-between;
					font-size: 24rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #333333;
				}
				.main_uses,.roomArea{
					font-size: 24rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #333333;
				}
			}
		}
	}
</style>
